package cn.clx.org.domain;

import cn.clx.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Deptpartment extends BaseDomain {

    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;
    private Long shop_id;
    //上级部门
    private Deptpartment parent;
    private Employee manager;

    //我的孩子们//只要对象为空 则就不返回children对象
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Deptpartment> children=new ArrayList<>();
    
}
